package com.zs.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/interceptor")
public class InterceptorController {
    @RequestMapping("a")
    public String a() {
        System.out.println("a");
        return "a";
    }
    @RequestMapping("b")
    public String b() {
        System.out.println("b");
        int i = 1/0;
        return "b";
    }

}
